package org.jeecg.modules.wmhb.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * @Description: 合同表
 * @Author: jeecg-boot
 * @Date:   2024-09-02
 * @Version: V1.0
 */
@Data
@TableName("wm_contract")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="wm_contract对象", description="合同表")
public class WmContract implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    private java.lang.String sysOrgCode;
	/**租户*/
    @ApiModelProperty(value = "租户")
    private java.lang.String tenantId;
    /**合同签订时间*/
    @Excel(name = "合同日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "合同签订时间")
    private java.util.Date signDate;
    /**签定方ID*/
    @Excel(name = "签定方", width = 15)
    @ApiModelProperty(value = "签定方ID")
    @Dict(dictTable = "wm_vendor", dicText = "cn_name", dicCode = "id")
    private java.lang.String wmVendorId;
    /**外键，项目ID*/
    @Excel(name = "项目名称", width = 15)
    @NotBlank(message = "项目ID不能为空")
    @ApiModelProperty(value = "项目ID")
    @Dict(dictTable = "wm_project", dicText = "name", dicCode = "id")
    private java.lang.String wmProjectId;
    /**客户ID*/
    @Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户ID")
    @Dict(dictTable = "wm_client", dicText = "cn_name", dicCode = "id")
    private java.lang.String wmClientId;
	/**合同名称*/
	@Excel(name = "合同名称", width = 15)
    @NotBlank(message = "合同名称不能为空")
    @ApiModelProperty(value = "合同名称")
    private java.lang.String name;
	/**合同编码（乙方）*/
	@Excel(name = "合同号（乙方）", width = 15)
    @ApiModelProperty(value = "合同编码（乙方）")
    private java.lang.String code;
    /**合同编码（甲方）*/
    @Excel(name = "合同号（甲方）", width = 15)
    @ApiModelProperty(value = "合同编码（甲方）")
    private java.lang.String clientContractNo;
	/**负责人*/
	@Excel(name = "负责人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "id")
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "id")
    @ApiModelProperty(value = "负责人")
    private java.lang.String chargeBy;
	/**合同类型*/
	@Excel(name = "合同类型", width = 15, dicCode = "contract_type")
	@Dict(dicCode = "contract_type")
    @ApiModelProperty(value = "合同类型")
    private java.lang.String type;
	/**进度权重*/
	@Excel(name = "进度权重", width = 15)
    @ApiModelProperty(value = "进度权重")
    private java.lang.String weight;
	/**联系电话*/
	@Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private java.lang.String phone;
	/**进度*/
	@Excel(name = "进度", width = 15)
    @ApiModelProperty(value = "进度")
    private java.lang.String progress;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "contract_status")
	@Dict(dicCode = "contract_status")
    @ApiModelProperty(value = "状态")
    private java.lang.String status;
	/**计划开始时间*/
	@Excel(name = "计划开始时间", width = 20, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "计划开始时间")
    private java.util.Date planBeginTime;
	/**计划完成时间*/
	@Excel(name = "计划完成时间", width = 20, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "计划完成时间")
    private java.util.Date planEndTime;
	/**实际开始时间*/
	@Excel(name = "实际开始时间", width = 20, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "实际开始时间")
    private java.util.Date factBeginTime;
	/**实际完成时间*/
	@Excel(name = "实际完成时间", width = 20, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "实际完成时间")
    private java.util.Date factEndTime;
	/**附件*/
	@Excel(name = "附件", width = 15)
    @ApiModelProperty(value = "附件")
    private java.lang.String file;

    /**导入批次号*/
    @ApiModelProperty(value = "导入批次号")
    private java.lang.String batchNo;
	/**单价*/
	@Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
    private java.lang.String price;
    /**合同金额*/
    @Excel(name = "合同金额", width = 15)
    @ApiModelProperty(value = "合同金额")
    private java.lang.String money;
    /**不含税金额*/
    @Excel(name = "不含税金额", width = 15)
    @ApiModelProperty(value = "不含税金额")
    private java.lang.String noTaxMoney;
    /**税额*/
    @Excel(name = "税额", width = 15)
    @ApiModelProperty(value = "税额")
    private java.lang.String tax;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;
	/**删除者*/
	@Excel(name = "删除者", width = 15)
    @ApiModelProperty(value = "删除者")
    private java.lang.String deleteBy;
	/**删除时间*/
	@Excel(name = "删除时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "删除时间")
    private java.util.Date deleteTime;
}
